<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{$site_seo.title}</title>
    <meta name="keywords" content="{$site_seo.keywords}">
    <meta name="description" content="{$site_seo.description}">
    <link href="/favicon.ico" rel="shortcut icon" />
    {block name="mip"}{/block}
    {block name="header"}{/block}
    <link href="__CSS__/base.css" rel="stylesheet" type="text/css" />
    <link href="__CSS__/hs13.css" rel="stylesheet" type="text/css" />

    <script src="__JS__/jquery-1.7.2.min.js"></script>
    <script src="__JS__/function.js"></script>
</head>
<body {block name="body_class"}{/block}>
<!--header-->
<div class="header {block name="chapter_header"}{/block}">
    <div class="inner">
        <div class="logo"><a href="{$site_config.site_domain}"><img src="__IMAGES__/logo.png" alt="{$site_config.site_name}"></a></div>
        <div class="nav">
            <ul class="clearfix">
                <li {eq name="$page_type" value="index" }class="on"{/eq}><a href="{$site_config.site_domain}">首页</a></li>
                <!--<li {eq name="$page_type" value="top" }class="on"{/eq}><a href="{:url("/top","","html",true)}">排行榜</a></li>-->
                <li {eq name="$page_type" value="news" }class="on"{/eq}><a href="{:url("/news","","html",true)}">资讯</a></li>
                <li {eq name="$page_type" value="tags" }class="on"{/eq}><a href="{:url("/tags","","html",true)}">标签</a></li>
                <li {eq name="$page_type" value="classify" }class="on"{/eq}><a href="{:url("/classify","","html",true)}">小说库</a></li>
            </ul>
        </div>
        <div class="search">
            <form  method="get" name="search"  action="{:url("/search","","",true)}" target="_blank" >
                <input type="text" name="k" id="q"  placeholder="请输入书名/作者/标签" class="search-key">
                <button type="submit" class="search-btn" id="search-btn">搜索</button>
            </form>
        </div>
        <div class="other">
            <a class="link-wap" href="{$site_config.mobile_domain}">手机版</a>
            <a class="link-bookshelf" href="javascript:void(0);">书架</a>
        </div>
    </div>
</div>
<!--/header-->
{block name="body"}{/block}
<!--footer-->
<div class="footer">
    <p><a href="{$site_config.site_domain}" rel="index">{$site_config.site_name}</a>所有内容使用搜索引擎转码技术抓取自网络，如有侵犯版权，请来信告知，本站立即处理。</p>
    <p>Powered by BookCMS v{$site_config.version} Copyright © 2018 <a href="{$site_config.site_domain}" rel="index">{$site_config.site_name}</a> All rights reserved.</p>
</div>
<!--/footer-->
{block name="footer"}{/block}
<script type="text/javascript">
    //搜索输入字符串合法性验证
    $("#search-btn").click(function(){
        var str = $("#q").val();
        var ret = /[^\w\u4e00-\u9fa5]/;
        if(ret.test(str)){
            alert("搜索内容不合法");
            return false;
        }else if(str === null || str === undefined || str === ''){
            alert("搜索内容不能为空");
            return false;
        }else{
            return ture;
        }
    });
</script>

</body>
</html>